public class Test {
    public static void main(String[] args) {
//        test1();
        test2();

    }
    public static void test1(){
        MyArraylist myArraylist =new MyArraylist(10);
        myArraylist.add(1);
        myArraylist.add(2);
        myArraylist.add(3);
        myArraylist.add(4);
        myArraylist.add(5);
        myArraylist.add(6);
        myArraylist.add(7);
        myArraylist.add(8);
        myArraylist.add(9);
        myArraylist.add(10);
        myArraylist.add(11);
        myArraylist.add(12);
        System.out.println(myArraylist.size());
        System.out.println(myArraylist);

        myArraylist.add(3,4);
        myArraylist.add(4,5);

        System.out.println(myArraylist.size());
        System.out.println(myArraylist);
    }
    public static void test2(){
        MyArraylist myArraylist =new MyArraylist(10);
        myArraylist.add(1);
        myArraylist.add(2);
        myArraylist.add(3);
        myArraylist.add(4);
        myArraylist.add(5);
        myArraylist.add(6);
        myArraylist.add(7);
        myArraylist.add(8);
        myArraylist.add(9);
        myArraylist.add(10);
        myArraylist.add(11);
        myArraylist.add(12);
        System.out.println(myArraylist.isEmpty());
        System.out.println(myArraylist);
        System.out.println(myArraylist.get(2));
        myArraylist.set(2,10);
        System.out.println(myArraylist);
        myArraylist.delete(10);
        System.out.println(myArraylist);
        System.out.println(myArraylist.contains(10));
        System.out.println(myArraylist.indexOf(10));
        System.out.println(myArraylist.lastIndexOf(11));
        myArraylist.clear();
        System.out.println(myArraylist);
    }
}
